package com.edmendst.xmall.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrdersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrdersExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountIsNull() {
            addCriterion("order_total_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountIsNotNull() {
            addCriterion("order_total_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountEqualTo(BigDecimal value) {
            addCriterion("order_total_amount =", value, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_total_amount <>", value, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountGreaterThan(BigDecimal value) {
            addCriterion("order_total_amount >", value, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_total_amount >=", value, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountLessThan(BigDecimal value) {
            addCriterion("order_total_amount <", value, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_total_amount <=", value, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountIn(List<BigDecimal> values) {
            addCriterion("order_total_amount in", values, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_total_amount not in", values, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_total_amount between", value1, value2, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderTotalAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_total_amount not between", value1, value2, "orderTotalAmount");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusIsNull() {
            addCriterion("order_payment_status is null");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusIsNotNull() {
            addCriterion("order_payment_status is not null");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusEqualTo(Boolean value) {
            addCriterion("order_payment_status =", value, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusNotEqualTo(Boolean value) {
            addCriterion("order_payment_status <>", value, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusGreaterThan(Boolean value) {
            addCriterion("order_payment_status >", value, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("order_payment_status >=", value, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusLessThan(Boolean value) {
            addCriterion("order_payment_status <", value, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("order_payment_status <=", value, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusIn(List<Boolean> values) {
            addCriterion("order_payment_status in", values, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusNotIn(List<Boolean> values) {
            addCriterion("order_payment_status not in", values, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("order_payment_status between", value1, value2, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderPaymentStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("order_payment_status not between", value1, value2, "orderPaymentStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusIsNull() {
            addCriterion("order_delivery_status is null");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusIsNotNull() {
            addCriterion("order_delivery_status is not null");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusEqualTo(Boolean value) {
            addCriterion("order_delivery_status =", value, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusNotEqualTo(Boolean value) {
            addCriterion("order_delivery_status <>", value, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusGreaterThan(Boolean value) {
            addCriterion("order_delivery_status >", value, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("order_delivery_status >=", value, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusLessThan(Boolean value) {
            addCriterion("order_delivery_status <", value, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("order_delivery_status <=", value, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusIn(List<Boolean> values) {
            addCriterion("order_delivery_status in", values, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusNotIn(List<Boolean> values) {
            addCriterion("order_delivery_status not in", values, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("order_delivery_status between", value1, value2, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDeliveryStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("order_delivery_status not between", value1, value2, "orderDeliveryStatus");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberIsNull() {
            addCriterion("order_tracking_number is null");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberIsNotNull() {
            addCriterion("order_tracking_number is not null");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberEqualTo(String value) {
            addCriterion("order_tracking_number =", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberNotEqualTo(String value) {
            addCriterion("order_tracking_number <>", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberGreaterThan(String value) {
            addCriterion("order_tracking_number >", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberGreaterThanOrEqualTo(String value) {
            addCriterion("order_tracking_number >=", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberLessThan(String value) {
            addCriterion("order_tracking_number <", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberLessThanOrEqualTo(String value) {
            addCriterion("order_tracking_number <=", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberLike(String value) {
            addCriterion("order_tracking_number like", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberNotLike(String value) {
            addCriterion("order_tracking_number not like", value, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberIn(List<String> values) {
            addCriterion("order_tracking_number in", values, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberNotIn(List<String> values) {
            addCriterion("order_tracking_number not in", values, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberBetween(String value1, String value2) {
            addCriterion("order_tracking_number between", value1, value2, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderTrackingNumberNotBetween(String value1, String value2) {
            addCriterion("order_tracking_number not between", value1, value2, "orderTrackingNumber");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeIsNull() {
            addCriterion("order_create_time is null");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeIsNotNull() {
            addCriterion("order_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeEqualTo(Date value) {
            addCriterion("order_create_time =", value, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeNotEqualTo(Date value) {
            addCriterion("order_create_time <>", value, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeGreaterThan(Date value) {
            addCriterion("order_create_time >", value, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("order_create_time >=", value, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeLessThan(Date value) {
            addCriterion("order_create_time <", value, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("order_create_time <=", value, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeIn(List<Date> values) {
            addCriterion("order_create_time in", values, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeNotIn(List<Date> values) {
            addCriterion("order_create_time not in", values, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeBetween(Date value1, Date value2) {
            addCriterion("order_create_time between", value1, value2, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andOrderCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("order_create_time not between", value1, value2, "orderCreateTime");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneIsNull() {
            addCriterion("receiver_phone is null");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneIsNotNull() {
            addCriterion("receiver_phone is not null");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneEqualTo(String value) {
            addCriterion("receiver_phone =", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneNotEqualTo(String value) {
            addCriterion("receiver_phone <>", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneGreaterThan(String value) {
            addCriterion("receiver_phone >", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("receiver_phone >=", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneLessThan(String value) {
            addCriterion("receiver_phone <", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneLessThanOrEqualTo(String value) {
            addCriterion("receiver_phone <=", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneLike(String value) {
            addCriterion("receiver_phone like", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneNotLike(String value) {
            addCriterion("receiver_phone not like", value, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneIn(List<String> values) {
            addCriterion("receiver_phone in", values, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneNotIn(List<String> values) {
            addCriterion("receiver_phone not in", values, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneBetween(String value1, String value2) {
            addCriterion("receiver_phone between", value1, value2, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andReceiverPhoneNotBetween(String value1, String value2) {
            addCriterion("receiver_phone not between", value1, value2, "receiverPhone");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusIsNull() {
            addCriterion("order_received_status is null");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusIsNotNull() {
            addCriterion("order_received_status is not null");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusEqualTo(Boolean value) {
            addCriterion("order_received_status =", value, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusNotEqualTo(Boolean value) {
            addCriterion("order_received_status <>", value, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusGreaterThan(Boolean value) {
            addCriterion("order_received_status >", value, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("order_received_status >=", value, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusLessThan(Boolean value) {
            addCriterion("order_received_status <", value, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("order_received_status <=", value, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusIn(List<Boolean> values) {
            addCriterion("order_received_status in", values, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusNotIn(List<Boolean> values) {
            addCriterion("order_received_status not in", values, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("order_received_status between", value1, value2, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("order_received_status not between", value1, value2, "orderReceivedStatus");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeIsNull() {
            addCriterion("order_received_time is null");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeIsNotNull() {
            addCriterion("order_received_time is not null");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeEqualTo(Date value) {
            addCriterion("order_received_time =", value, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeNotEqualTo(Date value) {
            addCriterion("order_received_time <>", value, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeGreaterThan(Date value) {
            addCriterion("order_received_time >", value, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("order_received_time >=", value, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeLessThan(Date value) {
            addCriterion("order_received_time <", value, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeLessThanOrEqualTo(Date value) {
            addCriterion("order_received_time <=", value, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeIn(List<Date> values) {
            addCriterion("order_received_time in", values, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeNotIn(List<Date> values) {
            addCriterion("order_received_time not in", values, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeBetween(Date value1, Date value2) {
            addCriterion("order_received_time between", value1, value2, "orderReceivedTime");
            return (Criteria) this;
        }

        public Criteria andOrderReceivedTimeNotBetween(Date value1, Date value2) {
            addCriterion("order_received_time not between", value1, value2, "orderReceivedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}